<?php

function retrieve_data_hutang(&$data, $kode){
    $CI = &get_instance();
    $kode = $CI->security->xss_clean($kode);
    $result = $CI->model_hutang->getDataHutang("WHERE d.id_hutang = '". mysql_escape_string($kode)."'");
    $row = $result->row();
        
    $data["catatan"] = $row->catatan;
    $data["jumlah_cicilan"] = $row->jumlah_cicilan;
    $data["nominal_hutang"] = $row->nominal_hutang;    
    $data["tanggal_jatuh_tempo"] = $row->tanggal_jatuh_tempo;
    $data["tanggal_hutang"] = $row->tanggal_hutang;
    $data["nik"] = $row->nik;
    $data["nama"] = $row->nama;
    $data["id_hutang"] = $row->id_hutang;
    $data["sisa_hutang"] = $row->sisa_hutang;    
}
?>
